package se.kayarr.cardplay.exceptions;

import lombok.Getter;
import se.kayarr.cardplay.gameplay.Card;
import se.kayarr.cardplay.gameplay.Player;

public class CardNotInHandException extends Exception {
	private static final long serialVersionUID = -4026445162769380859L;
	
	@Getter private Player player;
	@Getter private Card.Instance instance;
	
	public CardNotInHandException(Player player, Card.Instance instance) {
		super("The card " + instance + " is not in the hand of " + player.getName());
		this.player = player;
		this.instance = instance;
	}
}
